home *** CD-ROM | disk | FTP | other *** search
- function mousePress()
- {
- if(_root.mainNavMode == "slideShowModeA")
- {
- if(_root.mainNavAttached.slideShowType != 3)
- {
- return undefined;
- }
- _root.setCursor(260);
- _root.artBinAttached.picLabel = " ";
- _root.slideShowOrder.push(this);
- number1 = String(_root.slideShowOrder.length);
- hitSpaceBig._alpha = 50;
- hitSpaceBig.enabled = false;
- return undefined;
- }
- _root.galleryWallAttached.selectCurrent(this);
- this.swapDepths(_root.swapMovie);
- if(this.getDepth() != 50000)
- {
- _root.galleryWallAttached.correctLayers(this);
- }
- this._alpha = 70;
- if(this._currentframe == 2)
- {
- switch(this._x)
- {
- case -165:
- thisObject.artBinInsertPoint = 6;
- break;
- case -60:
- thisObject.artBinInsertPoint = 5;
- break;
- case 45:
- thisObject.artBinInsertPoint = 4;
- break;
- case 150:
- thisObject.artBinInsertPoint = 3;
- break;
- case 255:
- thisObject.artBinInsertPoint = 2;
- break;
- case 360:
- thisObject.artBinInsertPoint = 1;
- }
- }
- this.startDrag();
- this.gotoAndStop(3);
- _root.galleryWallAttached.setScale();
- _root.artBinAttached.picLabel = " ";
- myInterval = setInterval(this,"checkHitCrate",10);
- }
- function mouseRelease()
- {
- _root.setCursor(280);
- if(_root.mainNavMode == "slideShowModeA")
- {
- return undefined;
- }
- _root.setCursor("finger");
- this.stopDrag();
- this.swapDepths(_root.swapMovie);
- this._alpha = 100;
- clearInterval(myInterval);
- if(thisMovieClip.hitBlock.hitTest(_root.artBinAttached.BinMask) && _root.mainNavMode == "artBinModeA")
- {
- if(_root.fileObject.artBinArt.length < 50)
- {
- this.gotoAndStop(2);
- if(thisObject.currentIndex != null)
- {
- thisObject.deleteArt();
- thisObject.currentIndex = null;
- this.swapDepths(_root.artSwapClip1);
- this._xscale = 100;
- this._yscale = 100;
- _root.updateSwapMovie1();
- _level0.artBinAttached.reinsertImage(thisObject.artBinInsertPoint,this,2);
- }
- else
- {
- _level0.artBinAttached.reinsertImage(thisObject.artBinInsertPoint,this,1);
- }
- }
- else
- {
- this._x = thisObject.XCoord;
- this._y = thisObject.YCoord;
- _root.attachMovie("dialBox15","currentDialBox",55000);
- }
- }
- else if(this.hitBlock.hitTest(_root.storeItCrate.overBtn))
- {
- _root.storeItCrateSnd.start();
- thisObject.deleteArt();
- _root.storeItCrate.gotoAndStop(1);
- this.removeMovieClip();
- }
- else
- {
- _root.galWallInstall.start();
- if(thisObject.currentIndex == null)
- {
- if(_root.fileObject.hangingArtArray.length > 49)
- {
- _root.attachMovie("dialBox16","currentDialBox",55000);
- _level0.artBinAttached.reinsertImage(thisObject.artBinInsertPoint,this,1);
- this.gotoAndStop(2);
- }
- else
- {
- this.swapDepths(_root.artSwapClip);
- _root.updateSwapMovie();
- thisObject.insertArt();
- }
- }
- limits = bigClip.getBounds(_root);
- if(limits.yMax < 50 || limits.yMin > 330)
- {
- this._x = thisObject.XCoord;
- this._y = thisObject.YCoord;
- return undefined;
- }
- thisObject.XCoord = this._x;
- thisObject.YCoord = this._y;
- }
- }
- function checkHitCrate()
- {
- if(this.hitBlock.hitTest(_root.storeItCrate.overBtn))
- {
- _root.storeItCrate.gotoAndStop(2);
- }
- else
- {
- _root.storeItCrate.gotoAndStop(1);
- }
- }
- function mouseRollOver()
- {
- if(this._currentframe != 2)
- {
- return undefined;
- }
- _root.artBinAttached.picLabel = thisObject.artistName + ". " + thisObject.picTitle;
- }
- function mouseRollOut()
- {
- _root.artBinAttached.picLabel = " ";
- }
- function checkFramesLoaded()
- {
- if(thisMovieClip._framesloaded >= 3)
- {
- thisObject = _root.MCObjectMatcher.findMatch(fileName,thisMovieClip);
- clearInterval(myInterval);
- }
- }
- var myInterval;
- var picLabel;
- var thisMovieClip = this;
- var thisObject;
- var myInterval = setInterval(checkFramesLoaded,100);
- var isFirstPass = true;
- if(thisObject == undefined)
- {
- getUrl("EVENT:loadComplete", "");
- getUrl("http://www.scottforesman.com", "");
- }
-